﻿@using StudentManagement.Extensions.Pagenation;
@model PagedData<Student>


<h3>@ViewBag.PageTitle</h3>

<!--顶部筛选-->
<form asp-action="Index" method="get">
    <div class="form-actions no-color">
        <p>
            请输入筛选条件（按姓名/邮箱):
            <input type="text" name="SearchString" value="@ViewBag.SearchString" />
            <input type="submit" value="查询" class="btn btn-primary btn-sm" />
            <a asp-action="Index" class="btn btn-outline-dark btn-sm">显示全部学生</a>
            <a onclick="showInPopup('@Url.Action("AddOrEdit","Student", null, Context.Request.Scheme)', '添加学生')"
               class="btn btn-outline-dark btn-sm">添加学生</a>
            @*<a asp-action="Create" class="btn btn-outline-dark btn-sm">添加学生</a>*@
            <a asp-action="About" class="btn btn-outline-dark btn-sm">学生统计</a>
        </p>
    </div>
</form>

<!--清单表-->
<div id="view-all">
    @await Html.PartialAsync("ViewAll")
</div>

<!--Modal form-->
<div class="modal" tabindex="-1" role="dialog" id="form-modal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">

            </div>
        </div>
    </div>
</div>


